<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>社区题库</title>
  <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap" rel="stylesheet">
  <!--引入vue相应文件-->
  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <!-- 引入ElementUI样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入ElementUI组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  <style>
    :root {
      --primary-color: #105186;
      --secondary-color: #092B42;
      --light-bg: #F0F2F3;
      --text-gray: #666666;
      --accent-red: #E74C3C;
      --accent-orange: #FCB338;
      --dark-text: #171C1D;
      --accent-green: #71BF50;
      --white: #ffffff;
      --card-shadow: 0 4px 20px rgba(16, 81, 134, 0.1);
      --hover-shadow: 0 8px 30px rgba(16, 81, 134, 0.15);
      --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --border-radius: 12px;
      --spacing-unit: 1rem;
    }

    /* 全局动画效果 */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideIn {
      from {
        transform: translateX(-20px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Noto Sans TC', sans-serif;
      background: var(--light-bg);
      color: var(--dark-text);
      padding-top: 80px;
      line-height: 1.6;
    }

    #nav {
      position: fixed;
      top: 0;
      width: 100%;
      height: 80px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(12px);
      box-shadow: var(--card-shadow);
      z-index: 1000;
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(16, 81, 134, 0.1);
    }

    .nav-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 var(--spacing-unit);
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 2);
    }

    .brand-logo {
      width: 50px;
      height: 50px;
      border-radius: var(--border-radius);
      transition: transform 0.3s ease;
      box-shadow: var(--card-shadow);
    }

    .brand-logo:hover {
      transform: scale(1.05);
      box-shadow: var(--hover-shadow);
    }

    .brand-text-container {
      display: flex;
      gap: calc(var(--spacing-unit) * 2);
    }

    .brand-text {
      font-size: 1rem;
      font-weight: 500;
      color: var(--dark-text);
      padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
      border-radius: 8px;
      transition: var(--hover-transition);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .brand-text::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      transform: scaleX(0);
      transition: var(--hover-transition);
      transform-origin: left;
    }

    .brand-text:hover {
      color: var(--primary-color);
      background: rgba(16, 81, 134, 0.05);
    }

    .brand-text:hover::after,
    .brand-text.active::after {
      transform: scaleX(1);
    }

    .right-nav-user-group {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 1.5);
      height: 100%;
      padding: calc(var(--spacing-unit) * 0.5) 0;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 1.5);
      height: 100%;
    }

    .avatar-wrapper {
      position: relative;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      overflow: hidden;
      cursor: pointer;
      transition: var(--hover-transition);
      box-shadow: var(--card-shadow);
    }

    .avatar-wrapper:hover {
      transform: scale(1.05);
      box-shadow: var(--hover-shadow);
    }

    .user-avatar {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      background: #e0e0e0;
      border: 3px solid #fff;
      transition: var(--hover-transition);
    }

    .nav-item {
      display: flex;
      align-items: center;
      font-size: 1rem;
      color: var(--dark-text);
      cursor: pointer;
      transition: var(--hover-transition);
      padding: calc(var(--spacing-unit) * 0.5);
      border-radius: var(--border-radius);
      gap: calc(var(--spacing-unit) * 0.5);
    }

    .nav-item:hover {
      color: var(--primary-color);
      background: rgba(16, 81, 134, 0.05);
      transform: translateY(-2px);
    }

    .nav-item i {
      font-size: 1.2rem;
    }

    .nav-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .nav-avatar:hover {
      transform: scale(1.05);
    }

    .container {
      max-width: 1400px;
      margin: calc(var(--spacing-unit) * 2) auto;
      padding: 0 var(--spacing-unit);
      display: grid;
      gap: calc(var(--spacing-unit) * 2);
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      animation: fadeInUp 0.6s ease-out;
    }

    .section {
      background: var(--white);
      border-radius: var(--border-radius);
      padding: calc(var(--spacing-unit) * 2);
      box-shadow: var(--card-shadow);
      transition: var(--hover-transition);
      border: 1px solid rgba(16, 81, 134, 0.1);
      position: relative;
      overflow: hidden;
    }

    .section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      opacity: 0;
      transition: var(--hover-transition);
    }

    .section:hover {
      transform: translateY(-4px);
      box-shadow: var(--hover-shadow);
    }

    .section:hover::before {
      opacity: 1;
    }

    .user-avatar {
      background: var(--light-bg);
      box-sizing: border-box;
    }

    h2 {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--dark-text);
      margin-bottom: calc(var(--spacing-unit) * 1.5);
      position: relative;
      padding-left: calc(var(--spacing-unit) * 1.25);
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 0.5);
    }

    h2::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 4px;
      height: 28px;
      background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
      border-radius: 2px;
    }

    ul {
      list-style: none;
      display: grid;
      gap: calc(var(--spacing-unit) * 1.25);
    }

    li {
      padding: calc(var(--spacing-unit) * 1.25);
      border-radius: var(--border-radius);
      background: var(--white);
      display: flex;
      align-items: center;
      transition: var(--hover-transition);
      cursor: pointer;
      border: 1px solid rgba(16, 81, 134, 0.1);
      position: relative;
      overflow: hidden;
    }

    li:hover {
      transform: translateX(4px) translateY(-2px);
      box-shadow: var(--hover-shadow);
      border-color: var(--primary-color);
    }

    .hot {
      background: linear-gradient(135deg, #fff5f5, #fed7d7);
      color: #e53e3e;
      position: relative;
    }

    .hot::after {
      content: '🔥';
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.2rem;
      animation: pulse 2s infinite;
    }

    .normal {
      background: linear-gradient(135deg, #ebf8ff, #bee3f8);
      color: #3182ce;
    }

    .poor {
      background: linear-gradient(135deg, #f7fafc, #edf2f7);
      color: #718096;
    }

    @media (max-width: 768px) {
      .container {
        grid-template-columns: 1fr;
        padding: 0 calc(var(--spacing-unit) * 0.75);
      }

      .brand-text-container {
        gap: calc(var(--spacing-unit) * 0.75);
      }

      .nav-container {
        padding: 0 calc(var(--spacing-unit) * 0.75);
      }

      .brand-text {
        font-size: 0.9rem;
        padding: calc(var(--spacing-unit) * 0.4) calc(var(--spacing-unit) * 0.8);
      }

      .right-nav-user-group {
        gap: calc(var(--spacing-unit) * 0.75);
      }

      .nav-menu {
        gap: calc(var(--spacing-unit) * 0.75);
      }

      .avatar-wrapper {
        width: 36px;
        height: 36px;
      }

      .nav-item span {
        display: none;
      }

      .section {
        padding: calc(var(--spacing-unit) * 1.5);
      }

      h2 {
        font-size: 1.5rem;
      }

      li {
        padding: calc(var(--spacing-unit) * 0.75);
      }
    }

    @media (max-width: 480px) {
      .brand-text-container {
        display: none;
      }

      .avatar-wrapper {
        width: 32px;
        height: 32px;
      }

      .right-nav-user-group {
        gap: calc(var(--spacing-unit) * 0.5);
      }

      .container {
        padding: 0 calc(var(--spacing-unit) * 0.5);
      }
    }

    /* 题库区域样式 */
    .question-bank {
      max-width: 1400px;
      margin: calc(var(--spacing-unit) * 2) auto;
      padding: 0 var(--spacing-unit);
      animation: fadeInUp 0.6s ease-out;
    }

    .tab-container {
      margin-bottom: calc(var(--spacing-unit) * 1.5);
      border-bottom: 2px solid rgba(16, 81, 134, 0.1);
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 1.5);
      padding-bottom: calc(var(--spacing-unit) * 0.75);
    }

    .main-tabs {
      display: flex;
      gap: calc(var(--spacing-unit) * 0.75);
      align-items: center;
    }

    .tab-item {
      padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit) * 1);
      border-radius: var(--border-radius);
      cursor: pointer;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 0.5);
      transition: var(--hover-transition);
      position: relative;
    }

    .tab-item:hover {
      background: rgba(16, 81, 134, 0.05);
      color: var(--primary-color);
    }

    .tab-item.active {
      background: var(--primary-color);
      color: var(--white);
      font-weight: 500;
    }

    .tab-item.active::after {
      content: '';
      position: absolute;
      bottom: -12px;
      left: 50%;
      transform: translateX(-50%);
      width: 6px;
      height: 6px;
      background: var(--primary-color);
      border-radius: 50%;
    }

    .question-list {
      display: grid;
      gap: 1rem;
      margin-top: 2rem;
    }

    .question-item {
      padding: 1rem;
      border-radius: 8px;
      background: var(--white);
      box-shadow: var(--card-shadow);
      transition: all 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .question-item:hover {
      transform: translateX(4px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-right: 0.5rem;
    }

    .status-dot.hot {
      background: #e74c3c;
    }

    .status-dot.normal {
      background: #3498db;
    }

    .status-dot.poor {
      background: #95a5a6;
    }

    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-top: 2rem;
    }

    .page-item {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      border: 1px solid #eee;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .page-item:hover,
    .page-item.active {
      background: var(--primary-color);
      color: var(--white);
      border-color: var(--primary-color);
    }

    .publish-button {
      padding: 0.5rem 1rem;
      background: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .publish-button:hover {
      background: #2980b9;
    }
    .avatar-wrapper {
      cursor: pointer;
      transition: all 0.3s;
    }

    .avatar-wrapper:hover {
      transform: scale(1.05);
    }
    /* 消除头像容器聚焦时的默认轮廓 */
    .avatar-wrapper:focus {
      outline: none !important;
    }
    /* 保留原有的响应式设计 */
    @media (max-width: 768px) {
      .question-bank {
        padding: 0 1rem;
      }

      .tab-container {
        flex-wrap: wrap;
      }
    }

    /* 新增题库类型切换样式 */
    .bank-type-tabs {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid #eee;
      padding-bottom: 1rem;
    }

    .bank-type {
      padding: 0.5rem 1.5rem;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
    }

    .bank-type.active {
      background: var(--primary-color);
      color: var(--white);
    }

    .bank-type:not(.active):hover {
      background: rgba(16, 81, 134, 0.1);
    }

    /* 状态标签样式 */
    .status-tags {
      display: flex;
      gap: 1rem;
      margin-left: auto;
    }

    .status-tag {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      color: #666;
    }

    .status-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .status-hot {
      background: #e74c3c;
    }

    .status-normal {
      background: #2ecc71;
    }

    .status-cold {
      background: #95a5a6;
    }

    /* 发布按钮条件显示 */
    .publish-button {
      display: none;
    }

    .community-active .publish-button {
      display: flex;
    }

    /* 调整原有样式 */
    .tab-container {
      justify-content: space-between;
    }

    .main-tabs {
      flex-wrap: wrap;
    }

    /* 更新分页导航样式 */
    .pagination-wrapper {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 1rem 0;
      background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95));
      backdrop-filter: blur(8px);
      z-index: 100;
    }

    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .page-item {
      position: relative;
      min-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      border: 1px solid rgba(16, 81, 134, 0.2);
      background: transparent;
      color: var(--dark-text);
      font-weight: 500;
      cursor: pointer;
      transition: var(--hover-transition);
      padding: 0 0.5rem;
    }

    .page-item:not(.active):hover {
      border-color: var(--primary-color);
      background: rgba(16, 81, 134, 0.1);
      transform: translateY(-2px);
    }

    .page-item.active {
      min-width: 60px;
      background: var(--primary-color);
      border-color: var(--primary-color);
      color: var(--white);
      font-weight: 600;
      box-shadow: 0 4px 12px rgba(16, 81, 134, 0.3);
    }

    .page-item.dots {
      border: none;
      background: transparent;
      cursor: default;
      min-width: 30px;
    }

    .page-item.dots:hover {
      transform: none;
      background: transparent;
    }

    .page-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      border-radius: 8px;
      border: 1px solid rgba(16, 81, 134, 0.2);
      background: transparent;
      cursor: pointer;
      transition: var(--hover-transition);
    }

    .page-nav:hover {
      border-color: var(--primary-color);
      background: rgba(16, 81, 134, 0.1);
      transform: translateY(-2px);
    }

    .page-nav i {
      font-size: 1.2rem;
      color: var(--dark-text);
    }

    /* 为固定底部分页添加内容区域间距 */
    .question-bank {
      padding-bottom: 80px;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .pagination {
        padding: 0 1rem;
        gap: 0.3rem;
      }

      .page-item {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
      }

      .page-item.active {
        min-width: 50px;
      }

      .page-nav {
        min-width: 36px;
        height: 36px;
      }
    }

    @media (max-width: 480px) {
      .page-item {
        min-width: 32px;
        height: 32px;
      }

      .page-item.active {
        min-width: 45px;
      }

      .page-nav {
        min-width: 32px;
        height: 32px;
      }
    }

    /* 美化导航栏 */
    #nav {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(16, 81, 134, 0.1);
    }

    .brand-text {
      position: relative;
      overflow: hidden;
    }

    .brand-text::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      transform: scaleX(0);
      transition: var(--hover-transition);
      transform-origin: left;
    }

    .brand-text:hover::after,
    .brand-text.active::after {
      transform: scaleX(1);
    }

    /* 美化题目列表 */
    .question-item {
      background: linear-gradient(135deg, #fff, #f8f9fa);
      border: 1px solid rgba(16, 81, 134, 0.1);
      padding: 1.2rem;
      margin-bottom: 1rem;
      border-radius: 12px;
      transition: var(--hover-transition);
      animation: fadeInUp 0.5s ease forwards;
      opacity: 0;
    }

    .question-item:hover {
      transform: translateY(-4px) translateX(4px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
      border-color: var(--primary-color);
    }

    .question-item:nth-child(n) {
      animation-delay: calc(0.1s * var(--i, 0));
    }

    /* 美化分页导航 */
    .pagination-wrapper {
      margin-top: 2rem;
      padding: 1.5rem 0;
      background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9));
    }

    .pagination {
      background: rgba(255, 255, 255, 0.8);
      padding: 1rem;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      backdrop-filter: blur(8px);
    }

    .page-item {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #fff, #f8f9fa);
      border: 1px solid rgba(16, 81, 134, 0.2);
      min-width: 45px;
      height: 45px;
    }

    .page-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, var(--primary-color), #2980b9);
      opacity: 0;
      transition: var(--hover-transition);
      z-index: 0;
    }

    .page-item:hover::before {
      opacity: 0.1;
    }

    .page-item.active::before {
      opacity: 1;
    }

    .page-item span {
      position: relative;
      z-index: 1;
    }

    .page-item.active {
      border-color: transparent;
      color: var(--white);
      font-weight: 600;
    }

    /* 标签样式优化 */
    .tab-container {
      background: rgba(255, 255, 255, 0.8);
      padding: 1rem;
      border-radius: 12px;
      margin-bottom: 2rem;
      backdrop-filter: blur(8px);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .tab-item {
      position: relative;
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      font-weight: 500;
      transition: var(--hover-transition);
    }

    

    .tab-item:hover::before {
      opacity: 0.1;
    }

    .tab-item.active::before {
      opacity: 1;
    }

    .tab-item.active {
      color: var(--white);
    }

    /* 状态点优化 */
    .status-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      position: relative;
    }

    .status-dot::after {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      border-radius: 50%;
      background: inherit;
      opacity: 0.3;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
        opacity: 0.3;
      }
      70% {
        transform: scale(2);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 0;
      }
    }

    /* 响应式优化 */
    @media (max-width: 768px) {
      .tab-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
      }

      .page-item {
        min-width: 40px;
        height: 40px;
      }
    }

    @media (max-width: 480px) {
      .tab-container {
        padding: 0.8rem;
      }

      .question-item {
        padding: 1rem;
      }
    }

    /* 搜索框样式 */
    .search-container {
      flex: 1;
      max-width: 500px;
      margin: 0 2rem;
      position: relative;
    }

    .el-input {
      position: relative;
      font-size: 14px;
      display: inline-block;
      width: 100%;
    }

    .el-input__inner {
      width: 100%;
      height: 40px;
      padding: 0 15px;
      border-radius: 20px;
      border: 1px solid rgba(16, 81, 134, 0.2);
      background: rgba(255, 255, 255, 0.9);
      transition: var(--hover-transition);
      backdrop-filter: blur(4px);
      color: var(--dark-text);
    }

    .el-input__inner:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(16, 81, 134, 0.1);
    }

    .el-input__inner::placeholder {
      color: #666;
    }

    .el-input__icon {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      transition: var(--hover-transition);
      color: var(--primary-color);
    }

    .el-input__icon:hover {
      opacity: 0.8;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .search-container {
        margin: 0 1rem;
        max-width: 200px;
      }
      
      .el-input__inner {
        height: 36px;
        padding: 0 30px 0 12px;
      }
      
      .el-input__icon {
        right: 10px;
      }

      .brand-text-container {
        gap: calc(var(--spacing-unit));
      }
    }

    @media (max-width: 480px) {
      .search-container {
        max-width: 150px;
        margin: 0 0.5rem;
      }
      
      .el-input__inner::placeholder {
        font-size: 0.9em;
      }

      .brand-text-container {
        display: none;
      }
    }
  </style>
</head>
<body>
<nav id="nav">
  <div class="nav-container">
    <div class="brand-group">
      <img src="navbar_logo.png" alt="Logo" class="brand-logo">
      <div class="brand-text-container">
        <div class="brand-text active">首页</div>
        <div class="brand-text">题库中心</div>
        <div class="brand-text">学习中心</div>
      </div>
    </div>
    
    <div class="search-container">
      <div class="el-input">
        <input 
          type="text" 
          class="el-input__inner" 
          placeholder="Search"
          style="padding-right: 35px;"
        >
        <i class="el-icon-search el-input__icon"></i>
      </div>
    </div>

    <div class="right-nav-user-group">
      <div class="nav-menu">
        <div class="avatar-wrapper">
          <img
            class="user-avatar"
            src="https://java-web-tias.oss-cn-hangzhou.aliyuncs.com/6FC54B77560A6A56ACF84A5908C6019C.gif"
            alt="用户头像"
          />
        </div>
        <div class="nav-item">
          <span>用户名</span>
        </div>
      </div>
    </div>
  </div>
</nav>

<!-- 新的题库区域 -->
<div class="question-bank">
  <!-- 新增题库类型切换 -->
  <div class="bank-type-tabs">
    <div class="bank-type active" onclick="switchBankType('official')">官方题库</div>
    <div class="bank-type" onclick="switchBankType('community')">社区题库</div>

    <!-- 状态标签 -->
    <div class="status-tags">
      <div class="status-tag">
        <span class="status-indicator status-hot"></span>
        热门题目
      </div>
      <div class="status-tag">
        <span class="status-indicator status-normal"></span>
        一般题目
      </div>
      <div class="status-tag">
        <span class="status-indicator status-cold"></span>
        冷门题目
      </div>
    </div>
  </div>

  <div class="tab-container">
    <div class="main-tabs">
      <div class="tab-item active">全部题目</div>
      <div class="tab-item">阅读</div>
      <div class="tab-item">听力</div>
      <div class="tab-item">写作</div>
      <div class="tab-item">翻译</div>
    </div>
    <button class="publish-button">
      <i class="el-icon-plus"></i>
      发布题目
    </button>
  </div>

  <div class="question-list">
    <div class="question-item">
      <span class="status-dot hot"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot hot"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot hot"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot normal"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot normal"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot poor"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot poor"></span>
      2023年第五届阅读训练
    </div>
    <div class="question-item">
      <span class="status-dot poor"></span>
      2023年第五届阅读训练
    </div>
  </div>

  <div class="pagination-wrapper">
    <div class="pagination">
      <div class="page-nav">
        <i class="el-icon-arrow-left"></i>
      </div>
      <div class="page-item">1</div>
      <div class="page-item active">2</div>
      <div class="page-item">3</div>
      <div class="page-item">4</div>
      <div class="page-item">5</div>
      <div class="page-item dots">...</div>
      <div class="page-item">100</div>
      <div class="page-nav">
        <i class="el-icon-arrow-right"></i>
      </div>
    </div>
  </div>
</div>

<script src="https://unpkg.com/element-plus/dist/index.full.js"></script>
<script>
  window.addEventListener('scroll', function() {
    const nav = document.getElementById('nav');
    nav.classList.toggle('scrolled', window.scrollY > 10);
  });

  // 新增题库类型切换功能
  function switchBankType(type) {
    const questionBank = document.querySelector('.question-bank');
    const bankTypes = document.querySelectorAll('.bank-type');

    bankTypes.forEach(btn => {
      btn.classList.remove('active');
    });

    const activeBtn = document.querySelector(`.bank-type[onclick*="${type}"]`);
    activeBtn.classList.add('active');

    if (type === 'community') {
      questionBank.classList.add('community-active');
    } else {
      questionBank.classList.remove('community-active');
    }
  }
</script>
</body>
</html>